package com.imiku.service;

import com.imiku.model.TypeInfo;
import com.imiku.repository.TypeInfoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TypeInfoService {

    @Autowired
    private TypeInfoRepository typeInfoRepository;

    public List<TypeInfo> findAllType() {
        return typeInfoRepository.findAll();
    }
}
